import time
from datetime import date
from random import randint

str_all = 'yz012WXnopABigklmGHIPQRrstuv3456YZSCDEFOefghTUVwxqabcdJK78LMN9'
str_capital = '89WXYZ01JKLMDEFABCSTUV7GHINOPQR23456'
# base_str = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghigklmnopqrstuvwxyz0123456789'


def gen_random_str(
        length: int,
        only_capital: bool = False
        ):
    random_str = ''

    if only_capital:
        str_ = str_capital
    else:
        str_ = str_all

    _length = len(str_) - 1
    for i in range(length):
        random_str += str_[randint(0, _length)]
    return random_str


def get_timestamp(day: int = None, month: int = None, year: int = None) -> int:
    t = date.today()

    if month is None:
        month = t.month
    if year is None:
        year = t.year
    if day is None:
        day = t.day

    return int(time.mktime((year, month, day, 0, 0, 0, 0, 0, -1)))


if __name__ == '__main__':
    print(get_timestamp())
